import os
import time
import pytest
import allure

@pytest.fixture(scope="module",autouse=True)
def my_fixture():
    print('\n这是使用@pytest.fixture装饰器在调用了这个函数方法前执行的方法')
    yield
    print('这是装饰器的后置方法')

a=True
class TestGql:

    def test_1(self):
        print('\n测试用例1')

    def test_2(self):
        print('\n测试用例2')
class TestGql2:

    def test_3(self):
        print('\n测试用例3')

    def test_4(self):
        print('\n测试用例4')
        assert a

if __name__=='__main__':
    pytest.main('[-vs]')
    os.system('allure generate /Users/didi1/PycharmProjects/djangoProject/pytest-gql/second_test/temp -o /Users/didi1/PycharmProjects/djangoProject/pytest-gql/second_test/report --clean')